import { environment } from '@env/environment';
/**
 * constant
 */
export const Constant = {
  COOKIE_KEY: 'JSESSIONID',
  DATA_SET_ERROR_PREFIX: 'DataSetError',
  TEXT_SUCCESS: 'success',
  TEXT_ERROR: 'error',
  LAYOUT_KEY: 'layout',
  USER_KEY: 'user',
  APP_KEY: 'app',
  MENU_KEY: 'menu_bar',
  COOKIE_DOMAIN: environment.cookie.doMain,
  MAIN_PATH: 'main',
  OSS_IMAGE_RESIZE: '{0}?x-oss-process=image/resize,m_mfit,h_{1},w_{2}',
  AESLOGINKEY: '+ofninigol',
  AESIVCONTEXT: '+sulpdda+sulpdda',
  REMEMBERKEY: 'rm'
};

export const RegConstant = {
  ACCOUNT: /^[0-9a-zA-Z]{3,15}$/,
  PASSWORD: /^[0-9a-zA-Z]{6,}$/,
  PHONE: /^[1][3,4,5,7,8][0-9]{9}$/,
  EMAIL: /^[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$/
};
